﻿#region Usings

using System.Collections.Generic;
using System.Web.Caching;

#endregion

namespace RailNet.Dao.Repository
{
    internal interface ICacheableRepository<T>
    {
        Cache Cache { get; }

        IDictionary<long, T> CacheGetList();

        T CacheGet(long id);

        void CacheInsertOrUpdate(T instance);

        void CacheDelete(T instance);
    }
}